package in.co.codedoc.user;

import in.co.codedoc.cg.annotations.CacheKey;
import in.co.codedoc.cg.annotations.HasProperties;
import in.co.codedoc.cg.annotations.IsCached;
import in.co.codedoc.cg.annotations.IsMappedToJSON;
import in.co.codedoc.cg.annotations.IsMappedToTable;
import in.co.codedoc.cg.annotations.Property;

@IsMappedToJSON
@IsMappedToTable("Role")
@HasProperties
({
	@Property(name="id",identity=true),
	@Property(name="version",version=true),
	@Property(name="name",datatype=String.class)
})
@IsCached
({
	@CacheKey("id"),
	@CacheKey("name")
})
public class Role
	extends RoleBase
{

}
